//
//  leftViewCell.m
//  ILiangCang
//
//  Created by ZX on 16-4-21.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "leftViewCell.h"
#import "Masonry.h"
@implementation leftViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self)
    {
        
        self.backgroundColor = [UIColor clearColor];
        
        _bg = [[UIImageView alloc]init];
        [self addSubview:_bg];
        [_bg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(self.mas_centerX).with.offset(-20);
            make.bottom.mas_equalTo(self.mas_bottom).with.offset(5);
            make.height.mas_equalTo(5);
        }];
        
        _title = [[UILabel alloc]init];
        _title.textColor = [UIColor whiteColor];
        _title.font = [UIFont systemFontOfSize:15];
        [self addSubview:_title];
        [_title mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self.mas_centerY);
            make.left.mas_equalTo(self.mas_left).with.offset(30);
        }];
        
        _icon = [[UIImageView alloc]init];
        
        [self addSubview:_icon];
        [_icon mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self.mas_centerY);
            make.left.mas_equalTo(self.mas_left).with.offset(250);
            
        }];

     
        
    }
    
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
